﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeptEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.UserPermission.DeptEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #editTable
        {
            background-color: #000000;            
        }
        #editTable td
        {
            background-color: #ffffff;
            
        }
    </style>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div>
    <table id="editTable" width="600px" border="0" cellpadding="0" cellspacing="1" align="center">
        <tr>
            <td colspan="2" align="center" style="height:30px" >部门管理</td>        
        </tr>
        <tr>
            <td valign="top" style="width:200px">
                <asp:TreeView ID="tvDept" runat="server" ImageSet="Simple" 
                    onselectednodechanged="tvDept_SelectedNodeChanged">
            <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
            <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" 
                HorizontalPadding="0px" NodeSpacing="0px" VerticalPadding="0px" />
            <ParentNodeStyle Font-Bold="False" />
            <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" 
                HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
            </td>
            <td valign="top">
                <div style="text-align:left; margin-left:40px; margin-top:40px;">
                    已选部门：&nbsp;&nbsp;<asp:Label ID="lblSelectDept" runat="server"></asp:Label>
                </div>
                <div style="text-align:left; margin-left:40px; margin-top:20px;">
                    部门名称：&nbsp;&nbsp;<asp:TextBox ID="txtDeptName" runat="server" width="200px"></asp:TextBox>                    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        Display="Dynamic" ForeColor="Red" ControlToValidate="txtDeptName">必须填写</asp:RequiredFieldValidator>
                </div>   
                <div style="text-align:left; margin-left:110px; margin-top:20px; margin-bottom:40px;">
                    <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />                    
                    <asp:Button ID="btnDelete" runat="server" Text="删除" onclick="btnDelete_Click" 
                        CausesValidation="False" />
                    <asp:Button ID="btnAdd" runat="server" Text="添加为下属部门" onclick="btnAdd_Click" />
                </div>                  
                <%--<asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both" Width="100%"  >                                   
                    <Columns>
                        <asp:BoundField HeaderText="部门名称" DataField="DeptName"  />
                        <asp:TemplateField HeaderText="操作" ItemStyle-Width="100px">
                            <ItemTemplate>                                
                                <asp:Button ID="btnDelete" runat="server" Text="删除" Height="20px" CommandName="CmdDelete" OnClientClick="return confirm('确定要删除吗?')"></asp:Button>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
                    <RowStyle BackColor="#FAFAFA" ForeColor="#333333" HorizontalAlign="Center"/>
                    <EmptyDataTemplate>
                        <div style="text-align:center; margin-top:20px; margin-bottom:20px;">无下属部门</div>        
                    </EmptyDataTemplate>
                </asp:GridView>--%>
                
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
